<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关闭自己</title>
</head>
<body>
    <div>
        <a href="#" onclick="_closeWin()">关闭自己</a>
    </div>
    <script>
        function closeWin(){
            location.href = './close_self.html'
        }
        function _closeWin() {
            if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
                window.location.href = "about:blank";
                window.close();
            } else {
                window.opener = null;
                window.open("", "_self");
                window.close();
            };
        }
    </script>
</body>
</html>